package cn.edu.sjtu.se.dslab.util;


/**
 * 系统内部常量类 <BR>
 * 定义系统内部常量
 */
public class Const {

	/**
	 * 登陆用户信息session名
	 */
	public static final String SESSIONNAME = "user";

	/**
	 * 登陆用户权限session名
	 */
	public static final String MENU = "menu";

	/**
	 * REQUEST
	 */
	public static final String REQUEST = "request";

	/**
	 * PROJECT
	 */
	public static final String PROJECT = "project";

	/**
	 * BEAN
	 */
	public static final String BEAN = "bean";

	/**
	 * NOTICE
	 */
	public static final String USER = "user";
	/**
	 * PATIENT
	 */
	public static final String PATIENT = "patient";

	/**
	 * 每页最大记录数
	 */
	public static final int PAGESIZE = 5;

	/**
	 * 新增用户密码
	 */
	public static final String PASSWORD = "111111";

	/**
	 * 密码检查：匹配
	 */
	public static final Integer PASSWORD_STATE_MATCH = 0;
	/**
	 * 密码检查：失配
	 */
	public static final Integer PASSWORD_STATE_MISS = 1;
	/**
	 * 出错
	 */
	public static final Integer ERROR_CODE = -1;

	/**
	 * 以下为用于uri的统一定义
	 * 
	 * */
	public static final String URI_DATA_COMPONENT = "component:data_component";

	public static final String URI_METHOD_COMPONENT = "component:method_component";

	public static final String URI_DESIGN_PATTERN_COMPONENT = "component:design_pattern_component";
	
	public static final String URI_DIAGRAM = "diagram";
	
	public static final String URI_AADL_MODEL = "aadl:model";
	
	public static final String URI_UPLOAD_FILE = "upload_file";
	
	public static final String URI_AADL_TEMPLATE = "aadl:template";
	
	public static final String URI_INTERFACE = "interface";
	
	public static final String URI_DATA_ENTITY = "domain_entity:data";
	
	public static final String URI_DOMAIN_ENTITY = "domain_entity";
	
	public static final String URI_AVIONICS_EQUIPMENT = "domain_entity:equipment";
	
	public static final String URI_DATA_TYPE = "domain_entity:type";
	
	public static final String URI_DESIGN_PATTERN = "design_pattern";
	/**
	 * 高亮色
	 */
	public static final String COLOR_HIGHLIGHT = "#ffcb05";
	/**
	 * dataType对应的颜色
	 */
	public static final String COLOR_DATA_TYPE = "#7751E8";
	/**
	 * data_entity对应的颜色
	 */
	public static final String COLOR_DATA_ENTITY = "#F4DD84";
	/**
	 * data_entity对应的颜色
	 */
	public static final String COLOR_AVIONICS_EQUIPMENT = "#77DD1C";
	
	/**
	 * 线条颜色
	 */
	public static final String COLOR_LINE_COLOR = "#294253";
	/**
	 * 线条宽度
	 */
	public static final String LINE_WIDTH = "1";
	/**
	 * 类图的宽度
	 */
	public static final String DIAGRAM_WIDTH = "120";
	/**
	 * 类图的高度
	 */
	public static final String DIAGRAM_HEIGHT = "80";
	/**
	 * 以下为component 类型的统一定义
	 */
	
	public static final String COMPONENT_TYPE_METHOD = "功能函数组件";
	
	public static final String COMPONENT_TYPE_DATA = "数据实体组件";
	
	
	
	public static final String GENERATE_PATH = "/generate";
	public static final String UPLOAD_PATH = "/upload";
	public static final String DIAGRAM_PATH = "/diagram";
	public static final String USERDATA_PATH ="/userdata";
	
	public static final String ABSOLUTE_GENERATE_PATH  = Const.class.getResource(GENERATE_PATH).getPath();
	public static final String ABSOLUTE_UPLOAD_PATH  = Const.class.getResource(UPLOAD_PATH).getPath();
	public static final String ABSOLUTE_DIAGRAM_PATH  = Const.class.getResource(DIAGRAM_PATH).getPath();
	public static final String ABSOLUTE_USERDATA_PATH = Const.class.getResource(USERDATA_PATH).getPath();

	/**
	 * 以下为component 上传路径
	 */
	public static final String COMPONENT_UPLOAD_PATH = "component/";
	
	/**
	 * 以下为component 生成和下载路径
	 */
	public static final String COMPONENT_GENERATE_PATH = "component/";
	
	/**
	 * 以下为domainEntity 生成和下载路径
	 */
	public static final String DOMAIN_ENTITY_GENERATE_PATH = "entity/";
	
	/**
	 * 以下为interface 生成和下载路径
	 */
	public static final String INTERFACE_GENERATE_PATH = "interface/";
	
	/**
	 * 以下为aadl对应xml文件 生成和下载路径
	 */
	public static final String AADL_GENERATE_PATH = "aadl/";
	
	/**
	 * Domain_entity
	 */
	public static final String DATA_ENTITY = "数据实体";
	
	/**
	 * Data_type
	 */
	public static final String DATA_TYPE = "类型实体";
	
	/**
	 * Data_type_URI
	 */
	public static final String DATA_TYPE_URI = "type";
	
	
	public static final String AADL_DIAGRAM_TYPE_SYSTEM = "system";
	
	public static final String AADL_DIAGRAM_TYPE_DEVICE = "device";
	
	public static final String AADL_DIAGRAM_TYPE_MAIN_SYSTEM = "main";
	
	public static final String AADL_DIAGRAM_TYPE_INNER_SYSTEM = "inner";
	
	public static final String AADL_DIAGRAM_TYPE_OUTTER_DEVICE = "outer";
	
	public static final String AADL_DIAGRAM_TYPE_INNER_DEVICE = "inner";
	
	public static final String AADL_DIAGRAM_TYPE_ELSE_DEVICE = "else";
	
	
	public static final String AADL_DIAGRAM_TYPE_ISMAIN_SYSTEM = "yes";
	/**
	 * AvionicsEquipment
	 */
	public static final String AVIONICS_EQUIPMENT = "航电设备";
	
	/**
	 * AvionicsEquipment_URI
	 */
	public static final String AVIONICS_EQUIPMENT_URI = "equipment";
	
	/**
	 * Data_type的category定义
	 */
	//基本数据类型
	public static final String DATA_TYPE_BASIC = "basic";
	//枚举数据类型
	public static final String DATA_TYPE_ENUM = "enum";
	//结构体数据类型
	public static final String DATA_TYPE_STRUCT = "struct";
}
